package com.haiyou.dc.netty.entity.dto;

import com.haiyou.common.param.PageParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;

@Data
@ToString(callSuper = true)
public class ImChatListDTO extends PageParam {
    @NotNull(message = "发送者不能为空")
    @ApiModelProperty(value = "发送者", name = "sender")
    private String sender;

    @NotNull(message = "接收者不能为空")
    @ApiModelProperty(value = "接收者", name = "receiver")
    private String receiver;

    @ApiModelProperty(value = "内容类型，1text，2image，3sound，4date", name = "msgType")
    private String msgType;

    @ApiModelProperty(value = "是否已读", name = "isRead")
    private Boolean isRead = false;
}
